import 'package:fish_redux/fish_redux.dart';
import 'package:wowhy/pages/me_page/state.dart';

enum MePageAction { init, onLogin, login, onLogout }

class MePageActionCreator {
  static Action init(MePageState state) {
    return Action(MePageAction.init, payload: state);
  }

  static Action onLogin() {
    return Action(MePageAction.onLogin);
  }

  static Action login(bool isLogined) {
    return Action(MePageAction.login, payload: isLogined);
  }

  static Action onLogout() {
    return Action(MePageAction.onLogout);
  }
}
